package com.csnf.demo.mapper;

import com.csnf.demo.pojo.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookMapper {

    @Select("select * from tb_book")
    public List<Book> findAllBooks();


    @Delete("delete from tb_book where id=#{id}")
    public Integer deleteById(Integer id);
}
